package cn.dujy.derby.service.impl;

import cn.dujy.mybatis.service.impl.BaseDTOServiceImpl;
import cn.dujy.derby.domain.Contest;
import cn.dujy.derby.mapper.ContestMapper;
import cn.dujy.derby.service.IContestService;
import cn.dujy.derby.service.dto.ContestDTO;
import cn.dujy.derby.service.mapper.ContestDTOMapper;

import org.springframework.stereotype.Service;
import javax.annotation.PostConstruct;
import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 杜家源
 * @since 2023-12-06
 */
@Service
public class ContestServiceImpl
        extends BaseDTOServiceImpl<ContestMapper, Contest, ContestDTO>
        implements IContestService {

    @Resource
    private ContestMapper contestMapper;

    @Resource
    private ContestDTOMapper dtoMapper;

    /**
     * 重要，初始化 父级的 baseDTOMapper
     * */
    @PostConstruct
    public void init() {
        super.baseDTOMapper = dtoMapper;
    }
}
